<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>双向绑定</title>
</head>
<body>
    <div id="app">
        <!--双向绑定-->
        <input type="text" v-model="num">
        <!--事件的绑定：v-on-->
        <button v-on:click="num++">点我</button>
        <h2>
            我{{name}}有{{num}}
        </h2><br>
        <h2>
            {{info}}
        </h2>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        let a = new Vue({
            el:"#app",
            data:{
                name:"晟哥",
                info:"法拉利",
                num:1
            }
        });


    </script>
</body>
</html>